package(default_visibility = ["//visibility:public"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_test",
    "go_library",
)

go_test(
    name = "go_default_test",
    srcs = [
        "article_test.go",
        "author_test.go",
        "category_test.go",
        "coin_test.go",
        "creation_check_test.go",
        "creation_test.go",
        "creative_list_test.go",
        "draft_test.go",
        "favorite_test.go",
        "hotspots_test.go",
        "like_test.go",
        "list_test.go",
        "message_test.go",
        "notice_test.go",
        "rank_test.go",
        "recommends_test.go",
        "service_test.go",
        "stat_test.go",
        "tag_test.go",
        "upper_test.go",
        "users_test.go",
        "view_test.go",
        "xss_test.go",
    ],
    embed = [":go_default_library"],
    rundir = ".",
    tags = ["automanaged"],
    deps = [
        "//app/interface/openplatform/article/conf:go_default_library",
        "//app/interface/openplatform/article/model:go_default_library",
        "//app/service/main/coin/api/gorpc:go_default_library",
        "//app/service/main/coin/model:go_default_library",
        "//app/service/main/thumbup/model:go_default_library",
        "//app/service/main/thumbup/rpc/client:go_default_library",
        "//library/cache/redis:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/golang/mock/gomock:go_default_library",
        "//vendor/github.com/smartystreets/goconvey/convey:go_default_library",
    ],
)

go_library(
    name = "go_default_library",
    srcs = [
        "activity.go",
        "anniversary.go",
        "apply.go",
        "archive.go",
        "article.go",
        "author.go",
        "banner.go",
        "cards.go",
        "category.go",
        "coin.go",
        "creation.go",
        "creation_check.go",
        "creative_list.go",
        "draft.go",
        "favorite.go",
        "history.go",
        "hotspots.go",
        "infoc.go",
        "like.go",
        "list.go",
        "message.go",
        "notice.go",
        "old_creative.go",
        "rank.go",
        "read.go",
        "recommends.go",
        "search.go",
        "sentinel.go",
        "service.go",
        "setting.go",
        "share.go",
        "slide.go",
        "sort.go",
        "stat.go",
        "tag.go",
        "upper.go",
        "users.go",
        "view.go",
        "xss.go",
    ],
    importpath = "go-common/app/interface/openplatform/article/service",
    tags = ["automanaged"],
    deps = [
        "//app/interface/main/history/model:go_default_library",
        "//app/interface/main/history/rpc/client:go_default_library",
        "//app/interface/main/tag/model:go_default_library",
        "//app/interface/main/tag/rpc/client:go_default_library",
        "//app/interface/openplatform/article/conf:go_default_library",
        "//app/interface/openplatform/article/dao:go_default_library",
        "//app/interface/openplatform/article/model:go_default_library",
        "//app/interface/openplatform/article/model/search:go_default_library",
        "//app/service/main/account/model:go_default_library",
        "//app/service/main/account/rpc/client:go_default_library",
        "//app/service/main/archive/api:go_default_library",
        "//app/service/main/archive/api/gorpc:go_default_library",
        "//app/service/main/archive/model/archive:go_default_library",
        "//app/service/main/coin/api/gorpc:go_default_library",
        "//app/service/main/coin/model:go_default_library",
        "//app/service/main/favorite/api/gorpc:go_default_library",
        "//app/service/main/favorite/model:go_default_library",
        "//app/service/main/filter/model/rpc:go_default_library",
        "//app/service/main/filter/rpc/client:go_default_library",
        "//app/service/main/resource/model:go_default_library",
        "//app/service/main/resource/rpc/client:go_default_library",
        "//app/service/main/thumbup/model:go_default_library",
        "//app/service/main/thumbup/rpc/client:go_default_library",
        "//library/cache:go_default_library",
        "//library/database/sql:go_default_library",
        "//library/ecode:go_default_library",
        "//library/log:go_default_library",
        "//library/log/anticheat:go_default_library",
        "//library/log/infoc:go_default_library",
        "//library/net/rpc/warden:go_default_library",
        "//library/stat/prom:go_default_library",
        "//library/sync/errgroup:go_default_library",
        "//library/time:go_default_library",
        "//vendor/github.com/grokify/html-strip-tags-go:go_default_library",
        "//vendor/github.com/microcosm-cc/bluemonday:go_default_library",
    ],
)

filegroup(
    name = "package-srcs",
    srcs = glob(["**"]),
    tags = ["automanaged"],
    visibility = ["//visibility:private"],
)

filegroup(
    name = "all-srcs",
    srcs = [":package-srcs"],
    tags = ["automanaged"],
    visibility = ["//visibility:public"],
)
